]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Bug 588173 - No remove button on the first workspace
authorSander Dijkhuis <sander.dijkhuis@gmail.com>
Tue, 14 Jul 2009 12:37:21 +0000 (14:37 +0200)
committerSander Dijkhuis <sander.dijkhuis@gmail.com>
Tue, 14 Jul 2009 12:58:24 +0000 (14:58 +0200)
If there is only one workspace and it's empty, it should
not get a remove button. Add a workspaceNum != 0 check to
workspaces.js.

js/ui/workspaces.js

index 082545ab48fd897c8be5c0edb2434b7af36c3ae9..e70329456f8d05f050e73ce568856f0245df5fcc 100644 (file)
@@ -321,6 +321,7 @@ Workspace.prototype = {
     updateRemovable : function() {
         let global = Shell.Global.get();
         let removable = (this._windows.length == 1 /* just desktop */ &&
+                         this.workspaceNum != 0 &&
                          this.workspaceNum == global.screen.n_workspaces - 1);
 
         if (removable) {